﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Orchard.ContentManagement.Handlers;
using Szmyd.Orchard.Modules.Jumpstart.Models;

namespace Szmyd.Orchard.Modules.Jumpstart.Handlers
{
    /// <summary>
    /// Handler for UnpersistedPart.
    /// </summary>
    public class UnpersistedPartHandler : ContentHandler
    {
        /// <summary>
        /// Handler for PersistedPart. It is the place where all wiring goes on.
        /// Usually, unpersisted parts need no special handling.
        /// </summary>
        public UnpersistedPartHandler() {

            // This tells Orchard to add your part to some existing type
            // In this example, we add our UnpersistedPart to the Page item, so it will be displayed on every Page.
            Filters.Add(new ActivatingFilter<UnpersistedPart>("Page"));
        }
    }
}